package com.kedeng.yangmuyi.common.util;

import org.apache.commons.collections.CollectionUtils;

/**
 * @ClassName: CollectionUtils
 * @Description: Customer CollectionUtils for this project and extends from
 *               apache jar.
 * @author rqian
 * @date Aug 9, 2013 3:38:59 PM
 * 
 */
public class KDCollectionUtils extends CollectionUtils {

    /**
     * validate array is empty.
     * 
     * @param objects
     * @return
     */
    public static boolean isEmpty(Object[] objects) {
        boolean result = true;
        if (objects != null && objects.length > 0) {
            for (Object tObj : objects) {
                if (tObj != null) {
                    result = false;
                    break;
                }
            }
        }
        return result;
    }
}
